<?php echo $this->Html->script("validate");?>
<div class="main-content">
      <div class="left-panel"></div>
      <div class="panel">
           <?php echo $this->element("backend/left_menu");?>         
          <div class="content">
          <div class="title">
            <br />
            <h2 class="t1"><?php echo __("Thêm thông tin bệnh hại lúa");?></h2>
          </div>
           <fieldset>
              <div class="input-content">
          <?php
            echo $this->Form->create('BenhhaiTrieuchung');
           if(!empty($bophans)){
            foreach($bophans as $k=>$v){ 
             if(!empty($v['Trieuchung'])){      
          ?>
                    <h2 style="font-size:14pt;"><?php echo h($v['Bophan']['ten_bophan']); ?></h2>
                    
                     
                    
                         <div style="margin-left: 100px;">
                            <table style="background: none;">
                            <?php   
                        foreach($v['Trieuchung'] as $k1=>$v1){ 
                        ?>
                                <tr>
                                    <td style="width: 20px;">
                                    <?php echo $this->Form->hidden('',array('value'=>$id,'label'=>false,'div'=>false,'name'=>"data[BenhhaiTrieuchung][$k][ma_benhhai]"))?>
                                     <?php echo $this->Form->input('',array('type'=>'checkbox','value'=>$v1['id'],'label'=>false,'div'=>false,'name'=>"data[BenhhaiTrieuchung][$k][ma_trieuchung]"))?></td>
                                    <td style="font-size: 12pt;"> <?php echo $v1['ten_trieuchung'];?></td>
                                </tr>
                                <?php }?>
                            </table>
                         </div>
                    
                    <?php 
                     }
                                    
              }
              
              } ?>
            </div>
            <div class="input "> &nbsp;</div>  
           <div style="clear: both;"></div>
           <div class="submit">
                  <?php echo $this->Form->submit("",array('class'=>'save','id'=>'btnSave')); ?>
                   <!-- <input type="submit" id="btnSave" value="" class="save"> -->
              </div>
            </fieldset>
          <?php echo $this->Form->end(); ?>
        </div>
      </div>
      <div class="right-panel"></div>
      <!-- main.end -->
</div>
       
